<?php

namespace Project\ScrumBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Sprint
 *
 * @ORM\Table(name="sprint")
 * @ORM\Entity
 */
class Sprint
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id_sprint", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $idSprint;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="date", type="date", nullable=true)
     */
    private $date;

    /**
     * @var string
     *
     * @ORM\Column(name="pts_difficulte", type="string", length=45, nullable=true)
     */
    private $ptsDifficulte;

    /**
     * @var boolean
     *
     * @ORM\Column(name="last", type="boolean", nullable=true)
     */
    private $last;

    /**
     * @var \Groupe
     *
     * @ORM\ManyToOne(targetEntity="Groupe")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="ref_groupe", referencedColumnName="id_groupe")
     * })
     */
    private $refGroupe;



    /**
     * Get idSprint
     *
     * @return integer 
     */
    public function getIdSprint()
    {
        return $this->idSprint;
    }

    /**
     * Set date
     *
     * @param \DateTime $date
     * @return Sprint
     */
    public function setDate($date)
    {
        $this->date = $date;
    
        return $this;
    }

    /**
     * Get date
     *
     * @return \DateTime 
     */
    public function getDate()
    {
        return $this->date;
    }

    /**
     * Set ptsDifficulte
     *
     * @param string $ptsDifficulte
     * @return Sprint
     */
    public function setPtsDifficulte($ptsDifficulte)
    {
        $this->ptsDifficulte = $ptsDifficulte;
    
        return $this;
    }

    /**
     * Get ptsDifficulte
     *
     * @return string 
     */
    public function getPtsDifficulte()
    {
        return $this->ptsDifficulte;
    }

    /**
     * Set last
     *
     * @param boolean $last
     * @return Sprint
     */
    public function setLast($last)
    {
        $this->last = $last;
    
        return $this;
    }

    /**
     * Get last
     *
     * @return boolean 
     */
    public function getLast()
    {
        return $this->last;
    }

    /**
     * Set refGroupe
     *
     * @param \Project\ScrumBundle\Entity\Groupe $refGroupe
     * @return Sprint
     */
    public function setRefGroupe(\Project\ScrumBundle\Entity\Groupe $refGroupe = null)
    {
        $this->refGroupe = $refGroupe;
    
        return $this;
    }

    /**
     * Get refGroupe
     *
     * @return \Project\ScrumBundle\Entity\Groupe 
     */
    public function getRefGroupe()
    {
        return $this->refGroupe;
    }
}